package com.mofang.ticketing.user.serve.account.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

/**
 * @author LGC
 */
@Data
@ApiModel(value = "当前账号登录信息")
public class CurrentAccountInfoRespDTO implements Serializable {

    private static final long serialVersionUID = 2466565629184749646L;
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "所属组织 1=平台、2=商户、3=项目成员")
    private Integer belong;

    @ApiModelProperty(value = "账号类型 1=平台管理员、2=商户管理员、3=商户成员、4=项目成员")
    private Integer accountType;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "账号/手机号")
    private String account;

    @ApiModelProperty(value = "头像")
    private String headImg;

    @ApiModelProperty(value = "0=普通、1=管理员")
    private Integer isAdmin;

    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "角色Code")
    private String roleCode;

    @ApiModelProperty(value = "角色权限")
    private String authority;

    @ApiModelProperty(value = "权限key集合")
    private Set<String> perms;

}
